package com.foreveross.project.usercenterserver.oauth2.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.foreveross.project.usercenterserver.oauth2.domain.UcTenant;
import com.foreveross.project.usercenterserver.oauth2.dto.TenantDto;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yz
 * @since 2019-07-19
 */
public interface IUcTenantService extends IService<UcTenant> {

    UcTenant findByClientId(String clientId);


    UcTenant createTenant(TenantDto tenantDto);


    UcTenant updateTenant(TenantDto tenantDto);

    UcTenant findTenant(String tenantFkId);


    void deleteTenant(String tenantFkId);


    IPage<TenantDto> queryForPage(Page<TenantDto> page, Map<String, Object> params);
}
